const { Schema, model } = require('mongoose');
const typesSchema = new Schema({
    point: String,
}, { versionKey: false });
// versionKey: false 去掉数据库的-v
// 2. 设置数据模型，同时连接数据集合，typesModel可以任意命名
typesModel = model('typesModel', typesSchema, 'types');
//暴露数据
module.exports.typesModel = typesModel;